home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Now 11 / CD-ROM Now MegaDisc 11 (1995-02).iso / discs / tcl / tcl_faq2.par < prev    next >
Encoding:
Text File  |  1994-10-27  |  19.5 KB  |  497 lines

  1. Newsgroups: comp.lang.tcl,comp.answers,news.answers
  2. Path: lvirden
  3. From: lwv26@cas.org (Larry W. Virden)
  4. Subject: FAQ: comp.lang.tcl Frequently Asked Questions (3/5)
  5.     (Last updated: March 22, 1994)
  6. Followup-To: comp.lang.tcl
  7. Summary: A regular posting of the comp.lang.tcl Frequently Asked Questions
  8.     (FAQ) and their answers.  This is the third of five parts.
  9.     This part is a catalog of miscellaneous Tcl-based items.
  10. Originator: lvirden@cas.org
  11. Keywords: tcl, expect, extended tcl, wish, tk
  12. Sender: lvirden@cas.org
  13. Reply-To: lvirden@cas.org (Larry W. Virden)
  14. Approved: news-answers-request@MIT.Edu
  15.  
  16. Archive-name: tcl-faq/part3
  17. Version: 4.7
  18. Last-modified: March 22, 1994
  19.  
  20.     For more information concerning Tcl (see "tcl-faq/part1"),
  21. (see "tcl-faq/part2"), (see "tcl-faq/part4") or (see "tcl-faq/part5").
  22.  
  23. Index of questions:
  24.  
  25. XI. Where can I get these packages?
  26.     A. Retrieving Tcl and Tk
  27.     B. Accessing the Tcl/Tk User Contributions Archive
  28.     C. Expect available via e-mail.
  29.     D. EMACS modes for Tcl
  30.     E. The tk toolbox project
  31.     F. [tv]grind definitions for tcl/tk/expect
  32.     G. BNF style notation for Tcl
  33.     H. Tk Quick Reference Card
  34.     I. Hilit 19 Tcl mode
  35.     J. HTML versions of Tcl man pages and FAQ.
  36.  
  37. End of FAQ Index
  38.  
  39. ----------------------------------------------------------------------
  40.  
  41. ------------------------------
  42.  
  43. From: FAQ Tcl/Tk Package Catalog
  44. Subject: -XI- Where can I get these packages?
  45.  
  46. The "home site" for Tcl on the Internet is ftp.cs.berkeley.edu.
  47.  
  48. Tcl and Extended Tcl were posted to comp.sources.misc, appearing
  49. In volume 25 and then Tcl appeared again in volume 26 and can be found at
  50. most comp.sources.misc archive sites in the tcl and tclx directories.
  51. These are quite old versions actually, but are still usable.
  52.  
  53. a. Tcl    - available on ftp.cs.berkeley.edu and harbor.ecn.purdue.edu
  54. b. Tk    - available on ftp.cs.berkeley.edu and harbor.ecn.purdue.edu
  55. c. Extended Tcl - available on ftp.cs.berkeley.edu and harbor.ecn.purdue.edu
  56.     Note that currently the beta version of Extended Tcl is only
  57.     available on harbor.ecn.purdue.edu.
  58.  
  59. The IP address for harbor.ecn.purdue.edu is 128.46.128.76 .
  60.  
  61. Other sites which either mirror the Tcl/Tk submissions or have special
  62. versions are:
  63.  
  64. ftp://ftp.uu.net/languages/tcl/    <- ftp.cs only
  65. ftp://gatekeeper.dec.com/.0/BSD/UCB/sprite/ <- ftp.cs only
  66. ftp://sunsite.unc.edu/pub/languages/tcl/
  67. ftp://ftp.ibp.fr/pub/tcl/        <- distrib, contrib, expect
  68. ftp://syd.dit.csiro.au/pub/tk/    <- contrib and ftp.cs
  69.  
  70. ftp://iskut.ucs.ubc.ca/pub/X11/tcl/
  71. ftp://ftp.funet.fi/pub/languages/tcl/
  72. ftp://coma.cs.tu-berlin.de/pub/tcl/
  73. ftp://nic.funet.fi/pub/languages/tcl/
  74. ftp://oskgate0.mei.co.jp/free/X/toolkits/tcl/ <- ftp.cs only
  75.  
  76. ftp://sunsite.unc.edu/pub/Linux/    <- contains port of extended Tcl and
  77.                     extended Tk to this OS.
  78.  
  79. ------------------------------
  80.  
  81. From: -XI- Where can I get these packages?
  82. Subject: -A- Retrieving Tcl and Tk
  83.  
  84.  
  85. >From: ouster@cs.Berkeley.EDU (John Ousterhout)
  86. >Newsgroups: comp.lang.tcl
  87. >Subject: Obtaining Tcl/Tk sources
  88.  
  89. For people new to the Tcl/Tk community, here is information on how
  90. to obtain Tcl and Tk sources.  The information below describes what
  91. I distribute; other information is available from other machines
  92. also, such as harbor.ecn.purdue.edu.
  93.  
  94. The sources and documentation for the Tcl command
  95. language library, for the Tk toolkit, and for a few Tcl-based
  96. applications, are in the public FTP area on ftp.cs.berkeley.edu.
  97. All of these files are in the "tcl" subdirectory of the FTP area.
  98. Here is a catalog of what's available.  Most of the files are
  99. compressed tar files ("xxx.tar.Z").  There is some overlap
  100. between the contents of the various packages.
  101.  
  102.  
  103. tk3.6.tar.Z -             This is the latest and most stable release of the
  104.                         Tk toolkit, released in November 1993 (patch level
  105.                         206).  It includes the sources for the Tk library
  106.                         and the "wish" windowing shell, plus reference
  107.                         manual entries and a number of demonstration scripts.
  108.  
  109. tk3.6p1.patch.Z -    A patch for the tk3.6 distribution.
  110.  
  111. tcl7.3.tar.Z -          This is the latest and most stable release of the
  112.                         Tcl library, released in November 1993 (patch level
  113.                         106).  It includes the sources for the Tcl library
  114.                         and the "tclsh" application, plus reference manual
  115.                         entries.
  116.  
  117. tclX7.3a.tar.Z -        Extended Tcl (or NeoSoft Tcl), created by Mark
  118.                         Diekhans and Karl Lehenbauer, which adds a number
  119.                         of useful facilities to the base Tcl release.
  120.                         Among the things in Extended Tcl are a Tcl shell,
  121.                         many new commands for things like UNIX kernel
  122.                         call access, keyed lists, and time conversion, and an
  123.                         on-line help facility.  This package works with Tcl
  124.                         versions 7.3 or later and Tk versions 3.6 or later.
  125.  
  126. mx.tar.Z -        Sources and documentation for a mouse-based text
  127.             editor (mx) and terminal emulator (tx) based on
  128.             Tcl.  This is a very old release:  it uses an old
  129.             version of Tcl (which is included) and doesn't
  130.             even use Tk;  it uses an ancient toolkit called
  131.             "Sx".  These tools will eventually be replaced
  132.             with new tools based on Tk and the newest Tcl.
  133.  
  134. mx-2.5.tar.Z -         Newer version of mx (see above) that uses the
  135.             standard X selection mechanism rather than the
  136.             home-grown mechanism used by previous versions.
  137.             Version 2.5 is not backwards compatible with
  138.             previous versions (you can't cut and paste between
  139.             the two). Still uses sx and an old version of
  140.             Tcl (both of which are included).
  141.  
  142. book.p1.ps.Z        Compressed Postscript for a draft of the first part
  143.             of an upcoming book on Tcl and Tk to be published in
  144.             1993 by Addison-Wesley.  This part of the book
  145.             describes the Tcl language and how to write scripts
  146.             in it.  About 130 pages in length.
  147.  
  148. book.p2.ps.Z        Compressed Postscript for a draft of the second part
  149.             of an upcoming book on Tcl and Tk to be published in
  150.             1993 by Addison-Wesley.  This part of the book
  151.             describes how to write Tcl scripts for Tk.  About
  152.             125 pages in length.
  153.  
  154. book.p3.ps.Z            Compressed Postscript for a draft of the third part
  155.                         of an upcoming book on Tcl and Tk to be published in
  156.                         1993 by Addison-Wesley.  This part of the book
  157.                         describes how to write Tcl applications in C, using
  158.                         the Tcl library procedure.  64 pages in length.
  159.  
  160. book.p4.ps.Z            Compressed Postscript for a draft of the last part
  161.                         of an upcoming book on Tcl and Tk to be published in
  162.                         1993 by Addison-Wesley.  This part of the book
  163.                         describes how to write new widgets and geometry
  164.                         managers in C, using the Tk library procedure.  About
  165.                         70 pages in length.
  166.  
  167. tclUsenix90.ps -    Postscript for a paper on Tcl that appeared in the
  168.             Winter 1990 USENIX Conference.  This paper is also
  169.             included in the Tcl and Tk distributions.
  170.  
  171. tkUsenix91.ps -        Postscript for a paper on Tk that appeared in the
  172.             Winter 1991 USENIX Conference.  This paper is also
  173.             included in the Tk distribution.
  174.  
  175. tkF10.ps -        Postscript for Figure 10 of the Tk paper.
  176.  
  177. tut.tar.Z -        A collection of materials from a full-day tutorial
  178.             on Tcl and Tk.  Includes viewgraphs from five one-hour
  179.             talks plus a sample widget.
  180.  
  181. tc-tcl93.ps.gz -        PostScript formatted copy of Tcl Compiler paper
  182.                         presented at the Tcl'93 Workshop.
  183.  
  184. tc-tcl93.tex.gz -       LaTeX source for the Tcl Compiler paper presented
  185.                         at the Tcl'93 Workshop.
  186.  
  187.  
  188. In addition, there may be older releases of some or all of the above
  189. files;  look for files with earlier release numbers.
  190.  
  191.  
  192. To retrieve any or all of these packages, use anonymous FTP to
  193. ftp.cs.berkeley.edu (Internet address 128.32.149.78).  Use user
  194. "anonymous"; when asked for a password, type your login name.  Then
  195. retrieve the relevant file(s) with the commands like the following:
  196.         type image (try "type binary" if this command is rejected)
  197.         cd tcl
  198.         get tk3.6.tar.Z
  199.  
  200. Be sure to retrieve files in image mode (type "type image" to FTP)
  201. in order to make sure that you don't lose bits.
  202.  
  203. Any file with a .Z extension is a compressed file, which means you must
  204. use the "uncompress" program to get back a normal file.  For example, for
  205. the file tk3.6.tar.Z, you should type
  206.  
  207.     uncompress tk3.6.tar.Z
  208.  
  209. once you've retrieved the file.  This will produce a file named "tk3.6.tar".
  210. Then you will need to use tar to extract the members.  Typically one
  211. would use a command such as:
  212.  
  213.     tar xv tk3.6.tar
  214.  
  215. to extract the pieces.
  216.  
  217. Each of the releases has a README file in the top-level directory that
  218. describes how to compile the release, where to find documentation, etc.
  219.  
  220. Questions or problems about any of these distributions should be directed
  221. to "John Ousterhout" <ouster@cs.berkeley.edu>.
  222.  
  223. If you don't have access to ftp.cs.berkeley.edu, you can also retrieve some or
  224. all of the above files from other FTP repositories.  Here is a
  225. sampler of machines that store some or all of the Tcl/Tk information,
  226. plus the directories in which to check:
  227.  
  228. ftp://ftp.ibp.fr/pub/tcl/
  229. ftp://ftp.uu.net/languages/tcl/
  230. ftp://ftp.x.org/contrib/tcl*
  231. ftp://ftp.x.org/contrib/tk*
  232. ftp://gatekeeper.dec.com/pub/UCB/tcl/sprite/
  233. ftp://harbor.ecn.purdue.edu/pub/tcl/sprite-mirror/
  234. ftp://syd.dit.csiro.au/pub/tk/
  235.  
  236. ------------------------------
  237.  
  238. From: -XI- Where can I get these packages?
  239. Subject: -B- Accessing the Tcl/Tk User Contributions Archive
  240.  
  241. Contributions to the Tcl/Tk Contrib Archive are most welcome --
  242. please upload them to:
  243.  
  244.     ftp://harbor.ecn.purdue.edu/incoming    [128.46.128.76]
  245.  
  246. send the archive maintainer <tcl-archive@harbor.ecn.purdue.edu> a note stating
  247. the names of the files you uploaded and a brief description for the
  248. index.
  249.  
  250. Harbor is the central file server for the software staff of the
  251. Engineering Computer Network, so please try to refrain from FTPing
  252. stuff between 9am and 5pm EST (GMT -0500).  No mail-archive service is
  253. planned as yet -- users without FTP capability should use one of the
  254. following mail-based FTP services (send mail to the appropriate address
  255. with "help" in the body):
  256.  
  257. BITNET users:   BITFTP <bitftp@pucc.princeton.edu>
  258. Others:         "DEC ftpmail" <ftpmail@decwrl.dec.com>
  259. Europe:         ftpmail@grasp1.univ-lyon1.fr
  260.         mail-server@ftp.tu-clausthal.de
  261.  
  262. WARNING!  The archive maintainer will NOT be automatically archiving anything
  263. posted to comp.lang.tcl or previously to the mailing list.  So if you want
  264. your nifty porting instructions for getting Tcl up on your Seiko wrist watch
  265. or your pen computer to be saved for others benefit, be sure to ftp them into
  266. the archive.
  267.  
  268. All contributions should be placed in harbor's ~ftp/incoming
  269. subdirectory.  Please send tcl-archive@harbor.ecn.purdue.edu and a short
  270. mail message stating the filename(s) of your contribution and a brief
  271. description (for the Index).  If you've posted some code to
  272. comp.lang.tcl or the Tcl mailing list, and you want it to be archived
  273. at this site, please deposit it in ~ftp/incoming or mail it in a
  274. suitable form (preferably uuencoded compressed tar file, but a shar
  275. file's OK) to tcl-archive@harbor.ecn.purdue.edu.
  276.  
  277. Note: I have noticed that some authors prefer to use plain names rather than
  278. version level type names.  This means that you should a) make note of when
  279. you get a package, and b) check the archive occasionally to see if a newer
  280. version of the package has appeared.
  281.  
  282. ------------------------------
  283.  
  284. From: -XI- Where can I get these packages?
  285. Subject: -C- Expect available via e-mail.
  286.  
  287. Besides being available via ftp://ftp.cme.nist.gov/pub/expect/ ,
  288. expect can also be received by email by sending the message
  289. "send pub/expect/expect.shar.Z" to library@cme.nist.gov .
  290.  
  291. ------------------------------
  292.  
  293. From: -XI- Where can I get these packages?
  294. Subject: -D- EMACS modes for Tcl
  295.  
  296. "Sean Levy" <snl+@cs.cmu.edu> has hacked a version of Emacs's C mode into
  297. a tcl-mode.el.  He mentions that you must use semi-colons at the end
  298. of each statement to get indentation to work right, but he found that
  299. easier than doing without.
  300.  
  301. The code is on [128.2.214.236]
  302. ftp://ftp.cs.cmu.edu/afs/cs/user/snl/pub/tcl-mode.el.z
  303. (don't forget binary mode) as well as
  304. ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/tcl-mode.el.Z .
  305.  
  306. "Julian Anderson" <jules@kauri.vuw.ac.nz> was also working on an Emacs Tcl
  307. minor mode to fundamental.
  308.  
  309. "Chris Lindblad" <cjl@lcs.mit.edu> has contributed tcl.el, a Tcl mode for
  310. GNU emacs.  It's address is
  311. ftp://harbor.ecn.purdue.edu/pub/tcl/extensions/tcl.el .
  312.  
  313. tromey@cns.caltech.edu (Tom Tromey) has contributed tcl-help.el, an
  314. Extended Tcl help mode for GNU emacs.  It's address is
  315. ftp://harbor.ecn.purdue.edu/pub/tcl/extensions/tcl-help.el .
  316. He also has been working on a new version of Chris Linblad's tcl.el.
  317. Contact him for more details.
  318.  
  319. schmid@fb3-s7.math.TU-Berlin.DE (Gregor Schmid) has written a major mode
  320. for tcl scripts.  He posted tcl-mode 1.1 to gnu.emacs.sources in March and
  321. it should appear on
  322. ftp://archive.cis.ohio-state.edu:/pub/gnu/emacs/elisp-archive/modes/
  323. shortly.
  324.  
  325.  
  326. ------------------------------
  327.  
  328. From: -XI- Where can I get these packages?
  329. Subject: -E- The tk toolbox project
  330.  
  331. The Tk Toolbox & Toolchest project.
  332.  
  333. The Toolchest consists of convenience routines for Tcl and Tk - a kind of a
  334. libc for Tcl.  The toolbox is a collection of commonly used code and
  335. some specialized code such as file selectors, dialogs that take care of
  336. keyboard traversal through items automatically, etc.
  337.  
  338. The project has currently not yet reached a usable state, but each formal
  339. release will be announced in comp.lang.tcl as well as other newsgroups.
  340.  
  341. There is a mailing list for discussion of the tk toolbox, kindly provided by
  342. Ari Lemmke.  To subscribe, write a message with the line:
  343. X-Mn-Admin: join tktools
  344.  
  345. in the body or header of the message.  Send this message to
  346. linux-activists-request@niksula.cs.hut.fi .
  347.  
  348. To write to the list, send messages to to
  349. linux-activists@niksula.cs.hut.fi
  350. and add the line
  351. X-Mn-Key: TKTOOLS
  352. to the header or the body of the message. Especially remember this when
  353. replying to messages from the list.
  354.  
  355. For more info about the list server (mailnet), write
  356. an empty message to linux-activists-request@niksula.cs.hut.fi .
  357.  
  358. The intermediate snapshots are announced on this mailing list.
  359.  
  360. If you have problems or are willing to donate code or whatever,
  361. you can contact the code maintainer (one of the three main implementors)
  362. at tlukka@snakemail.hut.fi or lukka@helsinki.fi .
  363.  
  364. ------------------------------
  365.  
  366. From: -XI- Where can I get these packages?
  367. Subject: -F- [tv]grind definitions for tcl/tk/expect
  368.  
  369. "Martin Hamilton" <M.T.Hamilton@lut.ac.uk> has come up with a preliminary
  370. grindcap definition for Tcl, Tk and expect.  These are available as:
  371. ftp://harbor.ecn.purdue.edu/pub/tcl/docs/vgrind.defs
  372. ftp://harbor.ecn.purdue.edu/pub/tcl/docs/vgrind.defs.README
  373.  
  374.  
  375. andyr@wizzy.com (Andy Rabagliati) has come up with a preliminary grindcap
  376. definition for Tcl.  Contact him for more details.
  377.  
  378. ------------------------------
  379.  
  380. From: -XI- Where can I get these packages?
  381. Subject: -G- BNF style notation for Tcl
  382.  
  383. tb06@CS2.cc.lehigh.edu (TERRENCE MONROE BRANNON) in July of 1993, posted
  384. some yacc code for a tcl-to-c parser.  This, along with Adam Sah's Tcl
  385. compiler, are a couple of sources with which folk could start.
  386.  
  387. ------------------------------
  388.  
  389. From: -XI- Where can I get these packages?
  390. Subject: -H- Tk Quick Reference Card
  391.  
  392. raines@bohr.physics.upenn.edu (Paul E. Raines) has uploaded a quick
  393. reference card for Tk 3.3.  You may find it at:
  394.  
  395. ftp://harbor.ecn.purdue.edu/pub/tcl/docs/tkrefcard.tar.Z
  396. ftp://bohr.physics.upenn.edu/pub/tk/tkrefcard.tar.Z
  397.  
  398. The tar contains the TeX and PostScript versions of a 3 column listing
  399. of all widget methods and options and summaries of the wm, winfo, pack,
  400. place and bind commands.
  401.  
  402. ------------------------------
  403.  
  404. From: -XI- Where can I get these packages?
  405. Subject: -I- Hilit 19 Tcl mode
  406.  
  407. AI. Aaron Roydhouse <aaron@comp.vuw.ac.nz> wrote, and
  408. Julian.Anderson@comp.vuw.ac.nz (Julian Anderson) posted, the following:
  409.  
  410. (hilit-set-mode-patterns
  411.  'tcl-mode
  412.  '(("\\s #.*$" nil comment)
  413.    ("^#.*$" nil comment)
  414.    ("\"[^\\\"]*\\(\\\\\\(.\\|\n\\)[^\\\"]*\\)*\"" nil string)
  415.    ("\\$[-_a-zA-Z]+" nil varref)
  416.    ("^source.*$" nil include)
  417.    ("\\b\\(global\\|upvar\\)\\b" nil decl)
  418.    ("\\b\\(error\\|debug\\)\\b" nil decl)
  419.    ("^\\s *proc\\s +\\(\\w\\|[_']\\)+" nil defun)
  420.    ("\\b\\(set\\|lset\\|list\\|if\\|case\\|while\\|switch\\|then\\|else\\|
  421. for\\|foreach\\|return\\|expr\\|catch\\)\\b" nil keyword)))
  422.  
  423. Dwight Shih <dwight@crl.com> later posted the following font lock mode:
  424.  
  425. (defvar tcl-font-lock-keywords
  426.   (list
  427.    (list (concat "\\b\\("
  428.                  (mapconcat 'identity
  429.                             '("set" "lset" "list" "if" "case" "while"
  430.                               "switch" "then" "else" "for" "foreach"
  431.                               "return" "expr" "catch" "puts" "proc"
  432.                               "trace")
  433.                             "\\|")
  434.                  "\\)\\b")
  435.          1 'font-lock-keyword-face t)
  436.    (list (concat "\\b\\("
  437.                  (mapconcat 'identity
  438.                             '("global" "upvar" "uplevel" "error" "debug")
  439.                             "\\|")
  440.                  "\\)\\b")
  441.          1 'font-lock-type-face t)
  442.    (list "^\\s *proc\\s +\\(\\(\\w\\|[_']\\)+\\)" 1 'font-lock-function-name-fac
  443. e t))
  444.   "keywords for tcl-mode")
  445.  
  446. (defun font-lock-set-defaults ()
  447.   "Set `font-lock-keywords' to something appropriate for this mode."
  448.   (setq font-lock-keywords
  449.         (cond ((eq major-mode 'lisp-mode)       lisp-font-lock-keywords)
  450.               ((eq major-mode 'emacs-lisp-mode) lisp-font-lock-keywords)
  451.               ((eq major-mode 'c-mode)          c-font-lock-keywords)
  452.               ((eq major-mode 'c++-c-mode)      c-font-lock-keywords)
  453.               ((eq major-mode 'c++-mode)        c++-font-lock-keywords)
  454.               ((eq major-mode 'tex-mode)        tex-font-lock-keywords)
  455.               ((eq major-mode 'perl-mode)       perl-font-lock-keywords)
  456.               ((eq major-mode 'tcl-mode)        tcl-font-lock-keywords)
  457.               ((eq major-mode 'texinfo-mode)    texi-font-lock-keywords)
  458.               (t nil))))
  459.  
  460.  
  461. ------------------------------
  462.  
  463. From: -XI- Where can I get these packages?
  464. Subject: -J- HTML versions of Tcl man pages and FAQ.
  465.  
  466. Mike Hopkirk <hops@x.co.uk> has provided a tar archive of HyperText Markup 
  467. Language (HTML) versions of the comp.lang.tcl FAQ, the Tcl/Tk man pages,
  468. index pages for the man pages, and a top level access page to tie together
  469. all the above.  It is
  470.  
  471. ftp://harbor.ecn.purdue.edu/pub/tcl/docs/tclhtml.tar.z
  472.  
  473. Note that once these have been untarred, one can use a WorldWideWeb (WWW)
  474. browser such as Mosaic, Lynx, etc. to begin at the Tcl.html page and read
  475. the entire distribution.  The original source of this package can be
  476. examined at:
  477. http://www.sco.com/IXI/of_interest/tcl/Tcl.html
  478.  
  479. Having the package in this way provides a means for those behind a firewall
  480. to examine the docs frozen at this point in time.  There are no commitments
  481. to continue providing updates to this package. 
  482.  
  483. The man pages provided here were made using a perl script called
  484. man2html originally written by "Brooks Cutter" <bcutter@paradyne.com>
  485. and slightly post processed.
  486.  
  487. Note that the Tcl and Tk man pages are also available courtesy of Tom Phelps
  488. <phelps@CS.Berkeley.EDU>, who has made the man pages available
  489. at ftp://ftp.cs.berkeley.edu/pub/mhgs/tcltk/tcltk-man.html.tar.Z
  490. where, Tom tells us, they will be deleted later after TkMan has been updated
  491. to generate these pages automatically.
  492.  
  493.  
  494. ------------------------------
  495. End of comp.lang.tcl Frequently Asked Questions (3/5)
  496. *****************************************************
  497.